<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<%@include file="/common/head.jsp" %>

<c:set var="module" value="order"/>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
						<div class="clients-list">
                            <ul class="nav nav-tabs subTabs">
                                <li data-type="company" target="companybox"><a>装修公司</a></li>
                                <li data-type="designer" target="designerbox"><a>设计师</a></li>
                            </ul>
                            <div class="tab-content">
                                <div id="companybox" class="tab-pane" style="height:auto;">
                                    
                                </div>
                                <div id="designerbox" class="tab-pane" style="height:auto;">
                                    
                                </div>
                            </div>
                        </div>

					</div>
                </div>
            </div>
        </div>
    </div>

<%@include file="/common/foot.jsp" %>
<script>
$('.subTabs li').click(function(){
	$('.subTabs li.active').removeClass('active');
	$(this).addClass('active');
	var type = $(this).data('type');
	var target = $(this).attr('target');
	loading();
	$.ajax({
		url: "${ctx}/admin/user/newSubAccountDetail",
		data: {"type":type,"startIndex":${startIndex}	},
		success: function(data) {
			$('.tab-pane.active').removeClass('active');
			$('#' + target).html(data);
			$('#' + target).addClass('active');
			cancelLoading();
		},
		error: function(data) {
			cancelLoading();
		}
	}); 
});
$('.subTabs li').eq(0).trigger('click');
</script>
</body>
</html>